﻿@{
    ViewBag.Title = "LogOff";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
}


 

<script type="text/javascript">

    $(function () {
        $("#creat").click(function () {
            $("#count").append("<p id='pank'>从前有一个漂亮的小姑娘...</p>");
        });

        $("#creatEvent").click(function () {

            $("#pank").on("click", function () {
                alert("后来小姑娘被强奸了~");
            });
        });
    });

</script>

<div class="content">
    <input id="creat" type="button" value="添加一段话" />
    <div id="count">
    </div>

    <input id="creatEvent" type="button" value="给这段话添加事件" />
    <label for="mydate">Some Date</label>

    <input name="mydate" id="mydate" type="date" data-role="datebox" data-theme="a"
           data-options='{"mode": "calbox"}'>
</div>

